package com.study.manage.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.study.manage.domain.enumm.JpushAmbient;
import com.study.manage.domain.enumm.JpushTarget;
import com.study.manage.domain.enumm.JpushType;
import com.study.manage.domain.enumm.LiveDieState;

@Entity
@Table(name = "yy_jpush")
public class Jpush extends AbstractEntity {

    private static final long serialVersionUID = 5535409481110171726L;

    public String msg;

    @Enumerated(EnumType.STRING)
    public JpushAmbient ambient;

    public String platform;

    public Date regDate;

    @Column(name = "typee")
    public JpushType type = JpushType.ZDY;

    public String userIds;

    public JpushTarget target = JpushTarget.NO;

    public Long targetId;

    public String retMsg;

    public LiveDieState state = LiveDieState.LIVE;

    public Jpush() {}

    public Jpush(Long id) {
        this.id = id;
    }
}
